﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DEB RID: 3563
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RefreshTriggerByClientScRsp : IMessage<RefreshTriggerByClientScRsp>, IMessage, IEquatable<RefreshTriggerByClientScRsp>, IDeepCloneable<RefreshTriggerByClientScRsp>, IBufferMessage
	{
		// Token: 0x17002D31 RID: 11569
		// (get) Token: 0x06009FD1 RID: 40913 RVA: 0x001AB1F3 File Offset: 0x001A93F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RefreshTriggerByClientScRsp> Parser
		{
			get
			{
				return RefreshTriggerByClientScRsp._parser;
			}
		}

		// Token: 0x17002D32 RID: 11570
		// (get) Token: 0x06009FD2 RID: 40914 RVA: 0x001AB1FA File Offset: 0x001A93FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RefreshTriggerByClientScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D33 RID: 11571
		// (get) Token: 0x06009FD3 RID: 40915 RVA: 0x001AB20C File Offset: 0x001A940C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RefreshTriggerByClientScRsp.Descriptor;
			}
		}

		// Token: 0x06009FD4 RID: 40916 RVA: 0x001AB213 File Offset: 0x001A9413
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScRsp()
		{
		}

		// Token: 0x06009FD5 RID: 40917 RVA: 0x001AB228 File Offset: 0x001A9428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScRsp(RefreshTriggerByClientScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.triggerName_ = other.triggerName_;
			this.triggerEntityId_ = other.triggerEntityId_;
			this.refreshTrigger_ = other.refreshTrigger_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009FD6 RID: 40918 RVA: 0x001AB27C File Offset: 0x001A947C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScRsp Clone()
		{
			return new RefreshTriggerByClientScRsp(this);
		}

		// Token: 0x17002D34 RID: 11572
		// (get) Token: 0x06009FD7 RID: 40919 RVA: 0x001AB284 File Offset: 0x001A9484
		// (set) Token: 0x06009FD8 RID: 40920 RVA: 0x001AB28C File Offset: 0x001A948C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002D35 RID: 11573
		// (get) Token: 0x06009FD9 RID: 40921 RVA: 0x001AB295 File Offset: 0x001A9495
		// (set) Token: 0x06009FDA RID: 40922 RVA: 0x001AB29D File Offset: 0x001A949D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string TriggerName
		{
			get
			{
				return this.triggerName_;
			}
			set
			{
				this.triggerName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002D36 RID: 11574
		// (get) Token: 0x06009FDB RID: 40923 RVA: 0x001AB2B0 File Offset: 0x001A94B0
		// (set) Token: 0x06009FDC RID: 40924 RVA: 0x001AB2B8 File Offset: 0x001A94B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TriggerEntityId
		{
			get
			{
				return this.triggerEntityId_;
			}
			set
			{
				this.triggerEntityId_ = value;
			}
		}

		// Token: 0x17002D37 RID: 11575
		// (get) Token: 0x06009FDD RID: 40925 RVA: 0x001AB2C1 File Offset: 0x001A94C1
		// (set) Token: 0x06009FDE RID: 40926 RVA: 0x001AB2C9 File Offset: 0x001A94C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool RefreshTrigger
		{
			get
			{
				return this.refreshTrigger_;
			}
			set
			{
				this.refreshTrigger_ = value;
			}
		}

		// Token: 0x06009FDF RID: 40927 RVA: 0x001AB2D2 File Offset: 0x001A94D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RefreshTriggerByClientScRsp);
		}

		// Token: 0x06009FE0 RID: 40928 RVA: 0x001AB2E0 File Offset: 0x001A94E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RefreshTriggerByClientScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && !(this.TriggerName != other.TriggerName) && this.TriggerEntityId == other.TriggerEntityId && this.RefreshTrigger == other.RefreshTrigger && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009FE1 RID: 40929 RVA: 0x001AB350 File Offset: 0x001A9550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.TriggerName.Length != 0)
			{
				num ^= this.TriggerName.GetHashCode();
			}
			if (this.TriggerEntityId != 0U)
			{
				num ^= this.TriggerEntityId.GetHashCode();
			}
			if (this.RefreshTrigger)
			{
				num ^= this.RefreshTrigger.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009FE2 RID: 40930 RVA: 0x001AB3DC File Offset: 0x001A95DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009FE3 RID: 40931 RVA: 0x001AB3E4 File Offset: 0x001A95E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009FE4 RID: 40932 RVA: 0x001AB3F0 File Offset: 0x001A95F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RefreshTrigger)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.RefreshTrigger);
			}
			if (this.TriggerName.Length != 0)
			{
				output.WriteRawTag(58);
				output.WriteString(this.TriggerName);
			}
			if (this.TriggerEntityId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.TriggerEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009FE5 RID: 40933 RVA: 0x001AB488 File Offset: 0x001A9688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.TriggerName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.TriggerName);
			}
			if (this.TriggerEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TriggerEntityId);
			}
			if (this.RefreshTrigger)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009FE6 RID: 40934 RVA: 0x001AB508 File Offset: 0x001A9708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RefreshTriggerByClientScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.TriggerName.Length != 0)
			{
				this.TriggerName = other.TriggerName;
			}
			if (other.TriggerEntityId != 0U)
			{
				this.TriggerEntityId = other.TriggerEntityId;
			}
			if (other.RefreshTrigger)
			{
				this.RefreshTrigger = other.RefreshTrigger;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009FE7 RID: 40935 RVA: 0x001AB585 File Offset: 0x001A9785
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009FE8 RID: 40936 RVA: 0x001AB590 File Offset: 0x001A9790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 40U)
					{
						this.RefreshTrigger = input.ReadBool();
						continue;
					}
					if (num == 58U)
					{
						this.TriggerName = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.TriggerEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003D9B RID: 15771
		private static readonly MessageParser<RefreshTriggerByClientScRsp> _parser = new MessageParser<RefreshTriggerByClientScRsp>(() => new RefreshTriggerByClientScRsp());

		// Token: 0x04003D9C RID: 15772
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D9D RID: 15773
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04003D9E RID: 15774
		private uint retcode_;

		// Token: 0x04003D9F RID: 15775
		public const int TriggerNameFieldNumber = 7;

		// Token: 0x04003DA0 RID: 15776
		private string triggerName_ = "";

		// Token: 0x04003DA1 RID: 15777
		public const int TriggerEntityIdFieldNumber = 11;

		// Token: 0x04003DA2 RID: 15778
		private uint triggerEntityId_;

		// Token: 0x04003DA3 RID: 15779
		public const int RefreshTriggerFieldNumber = 5;

		// Token: 0x04003DA4 RID: 15780
		private bool refreshTrigger_;
	}
}
